package Week.Double004;

import java.util.ArrayList;
import java.util.List;

/**
 * @program Leetcode
 * @description:
 * @author: lishangsheng
 * @create: 2019/07/16 11:40
 */
public class problem02 {
    public String removeVowels(String S) {
        List<Character> characters=new ArrayList<>();
        characters.add('a');
        characters.add('e');
        characters.add('i');
        characters.add('o');
        characters.add('u');

        StringBuilder result=new StringBuilder();
        for(int i=0;i<S.length();i++){
            char c=S.charAt(i);
            if(characters.contains(c)){
                continue;
            }
            result.append(c);
        }
        return result.toString();
    }
}
